package com.hnevc.casher;

import java.util.Random;
import java.util.Scanner;



public class Toshiba implements ICashDispenser{
	@Override
	public int dispenser() {
		if(isCorrect()){
			return new Random().nextInt(100);
		}else{
			return 0;
		}
	}

	@Override
	public boolean isCorrect() {
		Scanner scanner = new Scanner(System.in) ;
		if("123".equals(scanner.next())){
			return true;
		}else{
			return false;
		}
	}
}
